<template class="container" onmousedown="Click()">
    <div>{{text}}</div>
    <ToolBar></ToolBar>
</template>
    
<script type="text/lua">
RegisterWidget("ToolBar", "@package/main/window/Widget/ToolBar.html")
text = "hello world";
local count = 1;

local text1 = [[
</div>
]]

function Click()
    count = count + 1;
    text = "click " .. tostring(count);
end

</script>
    
<style>
.container {
    width: 100%;
    height: 100%;
    background-color: #00000080;
}
.text {
    font-size: 40px;
}
</style>